﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000293 RID: 659
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueQueryInfo : IMessage<ChessRogueQueryInfo>, IMessage, IEquatable<ChessRogueQueryInfo>, IDeepCloneable<ChessRogueQueryInfo>, IBufferMessage
	{
		// Token: 0x17000891 RID: 2193
		// (get) Token: 0x06001D7E RID: 7550 RVA: 0x00053DB4 File Offset: 0x00051FB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueQueryInfo> Parser
		{
			get
			{
				return ChessRogueQueryInfo._parser;
			}
		}

		// Token: 0x17000892 RID: 2194
		// (get) Token: 0x06001D7F RID: 7551 RVA: 0x00053DBB File Offset: 0x00051FBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueQueryInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000893 RID: 2195
		// (get) Token: 0x06001D80 RID: 7552 RVA: 0x00053DCD File Offset: 0x00051FCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueQueryInfo.Descriptor;
			}
		}

		// Token: 0x06001D81 RID: 7553 RVA: 0x00053DD4 File Offset: 0x00051FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryInfo()
		{
		}

		// Token: 0x06001D82 RID: 7554 RVA: 0x00053DF4 File Offset: 0x00051FF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryInfo(ChessRogueQueryInfo other) : this()
		{
			this.queryDiceInfo_ = ((other.queryDiceInfo_ != null) ? other.queryDiceInfo_.Clone() : null);
			this.rogueVirtualItemInfo_ = ((other.rogueVirtualItemInfo_ != null) ? other.rogueVirtualItemInfo_.Clone() : null);
			this.rogueDifficultyInfo_ = ((other.rogueDifficultyInfo_ != null) ? other.rogueDifficultyInfo_.Clone() : null);
			this.areaIdList_ = other.areaIdList_.Clone();
			this.chessAeonInfo_ = ((other.chessAeonInfo_ != null) ? other.chessAeonInfo_.Clone() : null);
			this.exploredAreaIdList_ = other.exploredAreaIdList_.Clone();
			this.talentInfoList_ = ((other.talentInfoList_ != null) ? other.talentInfoList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001D83 RID: 7555 RVA: 0x00053EC6 File Offset: 0x000520C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryInfo Clone()
		{
			return new ChessRogueQueryInfo(this);
		}

		// Token: 0x17000894 RID: 2196
		// (get) Token: 0x06001D84 RID: 7556 RVA: 0x00053ECE File Offset: 0x000520CE
		// (set) Token: 0x06001D85 RID: 7557 RVA: 0x00053ED6 File Offset: 0x000520D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiceInfo QueryDiceInfo
		{
			get
			{
				return this.queryDiceInfo_;
			}
			set
			{
				this.queryDiceInfo_ = value;
			}
		}

		// Token: 0x17000895 RID: 2197
		// (get) Token: 0x06001D86 RID: 7558 RVA: 0x00053EDF File Offset: 0x000520DF
		// (set) Token: 0x06001D87 RID: 7559 RVA: 0x00053EE7 File Offset: 0x000520E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GIIPEENECMB RogueVirtualItemInfo
		{
			get
			{
				return this.rogueVirtualItemInfo_;
			}
			set
			{
				this.rogueVirtualItemInfo_ = value;
			}
		}

		// Token: 0x17000896 RID: 2198
		// (get) Token: 0x06001D88 RID: 7560 RVA: 0x00053EF0 File Offset: 0x000520F0
		// (set) Token: 0x06001D89 RID: 7561 RVA: 0x00053EF8 File Offset: 0x000520F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiffcultyInfo RogueDifficultyInfo
		{
			get
			{
				return this.rogueDifficultyInfo_;
			}
			set
			{
				this.rogueDifficultyInfo_ = value;
			}
		}

		// Token: 0x17000897 RID: 2199
		// (get) Token: 0x06001D8A RID: 7562 RVA: 0x00053F01 File Offset: 0x00052101
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AreaIdList
		{
			get
			{
				return this.areaIdList_;
			}
		}

		// Token: 0x17000898 RID: 2200
		// (get) Token: 0x06001D8B RID: 7563 RVA: 0x00053F09 File Offset: 0x00052109
		// (set) Token: 0x06001D8C RID: 7564 RVA: 0x00053F11 File Offset: 0x00052111
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryAeonInfo ChessAeonInfo
		{
			get
			{
				return this.chessAeonInfo_;
			}
			set
			{
				this.chessAeonInfo_ = value;
			}
		}

		// Token: 0x17000899 RID: 2201
		// (get) Token: 0x06001D8D RID: 7565 RVA: 0x00053F1A File Offset: 0x0005211A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ExploredAreaIdList
		{
			get
			{
				return this.exploredAreaIdList_;
			}
		}

		// Token: 0x1700089A RID: 2202
		// (get) Token: 0x06001D8E RID: 7566 RVA: 0x00053F22 File Offset: 0x00052122
		// (set) Token: 0x06001D8F RID: 7567 RVA: 0x00053F2A File Offset: 0x0005212A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueTalentInfo TalentInfoList
		{
			get
			{
				return this.talentInfoList_;
			}
			set
			{
				this.talentInfoList_ = value;
			}
		}

		// Token: 0x06001D90 RID: 7568 RVA: 0x00053F33 File Offset: 0x00052133
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueQueryInfo);
		}

		// Token: 0x06001D91 RID: 7569 RVA: 0x00053F44 File Offset: 0x00052144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueQueryInfo other)
		{
			return other != null && (other == this || (object.Equals(this.QueryDiceInfo, other.QueryDiceInfo) && object.Equals(this.RogueVirtualItemInfo, other.RogueVirtualItemInfo) && object.Equals(this.RogueDifficultyInfo, other.RogueDifficultyInfo) && this.areaIdList_.Equals(other.areaIdList_) && object.Equals(this.ChessAeonInfo, other.ChessAeonInfo) && this.exploredAreaIdList_.Equals(other.exploredAreaIdList_) && object.Equals(this.TalentInfoList, other.TalentInfoList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001D92 RID: 7570 RVA: 0x00054000 File Offset: 0x00052200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.queryDiceInfo_ != null)
			{
				num ^= this.QueryDiceInfo.GetHashCode();
			}
			if (this.rogueVirtualItemInfo_ != null)
			{
				num ^= this.RogueVirtualItemInfo.GetHashCode();
			}
			if (this.rogueDifficultyInfo_ != null)
			{
				num ^= this.RogueDifficultyInfo.GetHashCode();
			}
			num ^= this.areaIdList_.GetHashCode();
			if (this.chessAeonInfo_ != null)
			{
				num ^= this.ChessAeonInfo.GetHashCode();
			}
			num ^= this.exploredAreaIdList_.GetHashCode();
			if (this.talentInfoList_ != null)
			{
				num ^= this.TalentInfoList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001D93 RID: 7571 RVA: 0x000540B0 File Offset: 0x000522B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001D94 RID: 7572 RVA: 0x000540B8 File Offset: 0x000522B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001D95 RID: 7573 RVA: 0x000540C4 File Offset: 0x000522C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.exploredAreaIdList_.WriteTo(ref output, ChessRogueQueryInfo._repeated_exploredAreaIdList_codec);
			if (this.chessAeonInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.ChessAeonInfo);
			}
			this.areaIdList_.WriteTo(ref output, ChessRogueQueryInfo._repeated_areaIdList_codec);
			if (this.rogueDifficultyInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.RogueDifficultyInfo);
			}
			if (this.rogueVirtualItemInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.RogueVirtualItemInfo);
			}
			if (this.talentInfoList_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.TalentInfoList);
			}
			if (this.queryDiceInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.QueryDiceInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001D96 RID: 7574 RVA: 0x00054194 File Offset: 0x00052394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.queryDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryDiceInfo);
			}
			if (this.rogueVirtualItemInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueVirtualItemInfo);
			}
			if (this.rogueDifficultyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDifficultyInfo);
			}
			num += this.areaIdList_.CalculateSize(ChessRogueQueryInfo._repeated_areaIdList_codec);
			if (this.chessAeonInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChessAeonInfo);
			}
			num += this.exploredAreaIdList_.CalculateSize(ChessRogueQueryInfo._repeated_exploredAreaIdList_codec);
			if (this.talentInfoList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TalentInfoList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001D97 RID: 7575 RVA: 0x00054258 File Offset: 0x00052458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueQueryInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.queryDiceInfo_ != null)
			{
				if (this.queryDiceInfo_ == null)
				{
					this.QueryDiceInfo = new ChessRogueQueryDiceInfo();
				}
				this.QueryDiceInfo.MergeFrom(other.QueryDiceInfo);
			}
			if (other.rogueVirtualItemInfo_ != null)
			{
				if (this.rogueVirtualItemInfo_ == null)
				{
					this.RogueVirtualItemInfo = new GIIPEENECMB();
				}
				this.RogueVirtualItemInfo.MergeFrom(other.RogueVirtualItemInfo);
			}
			if (other.rogueDifficultyInfo_ != null)
			{
				if (this.rogueDifficultyInfo_ == null)
				{
					this.RogueDifficultyInfo = new ChessRogueQueryDiffcultyInfo();
				}
				this.RogueDifficultyInfo.MergeFrom(other.RogueDifficultyInfo);
			}
			this.areaIdList_.Add(other.areaIdList_);
			if (other.chessAeonInfo_ != null)
			{
				if (this.chessAeonInfo_ == null)
				{
					this.ChessAeonInfo = new ChessRogueQueryAeonInfo();
				}
				this.ChessAeonInfo.MergeFrom(other.ChessAeonInfo);
			}
			this.exploredAreaIdList_.Add(other.exploredAreaIdList_);
			if (other.talentInfoList_ != null)
			{
				if (this.talentInfoList_ == null)
				{
					this.TalentInfoList = new ChessRogueTalentInfo();
				}
				this.TalentInfoList.MergeFrom(other.TalentInfoList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001D98 RID: 7576 RVA: 0x0005437E File Offset: 0x0005257E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001D99 RID: 7577 RVA: 0x00054388 File Offset: 0x00052588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num <= 18U)
					{
						if (num == 16U || num == 18U)
						{
							this.exploredAreaIdList_.AddEntriesFrom(ref input, ChessRogueQueryInfo._repeated_exploredAreaIdList_codec);
							continue;
						}
					}
					else
					{
						if (num == 34U)
						{
							if (this.chessAeonInfo_ == null)
							{
								this.ChessAeonInfo = new ChessRogueQueryAeonInfo();
							}
							input.ReadMessage(this.ChessAeonInfo);
							continue;
						}
						if (num == 48U)
						{
							goto IL_A4;
						}
					}
				}
				else if (num <= 58U)
				{
					if (num == 50U)
					{
						goto IL_A4;
					}
					if (num == 58U)
					{
						if (this.rogueDifficultyInfo_ == null)
						{
							this.RogueDifficultyInfo = new ChessRogueQueryDiffcultyInfo();
						}
						input.ReadMessage(this.RogueDifficultyInfo);
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.rogueVirtualItemInfo_ == null)
						{
							this.RogueVirtualItemInfo = new GIIPEENECMB();
						}
						input.ReadMessage(this.RogueVirtualItemInfo);
						continue;
					}
					if (num == 98U)
					{
						if (this.talentInfoList_ == null)
						{
							this.TalentInfoList = new ChessRogueTalentInfo();
						}
						input.ReadMessage(this.TalentInfoList);
						continue;
					}
					if (num == 122U)
					{
						if (this.queryDiceInfo_ == null)
						{
							this.QueryDiceInfo = new ChessRogueQueryDiceInfo();
						}
						input.ReadMessage(this.QueryDiceInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_A4:
				this.areaIdList_.AddEntriesFrom(ref input, ChessRogueQueryInfo._repeated_areaIdList_codec);
			}
		}

		// Token: 0x04000C23 RID: 3107
		private static readonly MessageParser<ChessRogueQueryInfo> _parser = new MessageParser<ChessRogueQueryInfo>(() => new ChessRogueQueryInfo());

		// Token: 0x04000C24 RID: 3108
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C25 RID: 3109
		public const int QueryDiceInfoFieldNumber = 15;

		// Token: 0x04000C26 RID: 3110
		private ChessRogueQueryDiceInfo queryDiceInfo_;

		// Token: 0x04000C27 RID: 3111
		public const int RogueVirtualItemInfoFieldNumber = 8;

		// Token: 0x04000C28 RID: 3112
		private GIIPEENECMB rogueVirtualItemInfo_;

		// Token: 0x04000C29 RID: 3113
		public const int RogueDifficultyInfoFieldNumber = 7;

		// Token: 0x04000C2A RID: 3114
		private ChessRogueQueryDiffcultyInfo rogueDifficultyInfo_;

		// Token: 0x04000C2B RID: 3115
		public const int AreaIdListFieldNumber = 6;

		// Token: 0x04000C2C RID: 3116
		private static readonly FieldCodec<uint> _repeated_areaIdList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x04000C2D RID: 3117
		private readonly RepeatedField<uint> areaIdList_ = new RepeatedField<uint>();

		// Token: 0x04000C2E RID: 3118
		public const int ChessAeonInfoFieldNumber = 4;

		// Token: 0x04000C2F RID: 3119
		private ChessRogueQueryAeonInfo chessAeonInfo_;

		// Token: 0x04000C30 RID: 3120
		public const int ExploredAreaIdListFieldNumber = 2;

		// Token: 0x04000C31 RID: 3121
		private static readonly FieldCodec<uint> _repeated_exploredAreaIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x04000C32 RID: 3122
		private readonly RepeatedField<uint> exploredAreaIdList_ = new RepeatedField<uint>();

		// Token: 0x04000C33 RID: 3123
		public const int TalentInfoListFieldNumber = 12;

		// Token: 0x04000C34 RID: 3124
		private ChessRogueTalentInfo talentInfoList_;
	}
}
